<template>
  <div v-bind="$attrs">
我是子组件---{{attrs.msg }}
    </div>
</template>

<script  setup>

import { useAttrs } from 'vue'

const attrs = useAttrs()
console.log(attrs,'son');


</script>

<style lang=" less" scoped>

    </style>
